package com.ruoyi.upload.service;

import com.ruoyi.common.entity.templateentity.Template;
import com.ruoyi.common.entity.uploadentity.Upload;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UploadService {

    /**
     * 文件上传
     *
     * @param multipartFile
     * @return
     */
    Upload upLoad(MultipartFile multipartFile);

    List<Upload> upLoad(MultipartFile[] multipartFile) throws Exception;

    /**
     * 截取文件名
     * @param name
     * @return
     */
    String splitFileName(String name);

    /**
     * 删除模板
     * @param resource
     * @return
     */
    boolean deleteFile(String resource);




}
